package class_1_8.abstract_test.capacity;

public class Frog extends Animal implements IRun,ISwim{
    public Frog(String name) {
        super(name);
    }

    @Override
    public void eat(String food) {
        System.out.println(this.name+"正在吃"+food);
    }

    @Override
    public void IRun() {
        System.out.println(this.name+"会跑");
    }

    @Override
    public void swim() {
        System.out.println(this.name+"会游泳");
    }
}
